#include <iostream>
using namespace std;
class Teacher
{
public:
	string teacher_name;
	int age;
	int workage;
public:
	virtual void showDetails() {};
	virtual void research() {};
};
class LabEquipment
{
public:
	void experiment()
	{
		cout << "Performing an experiment with the lab equipment." << endl;
	}
};
class TeacherResearcher :public Teacher,public LabEquipment
{
private:
	int num=0;
public:
	TeacherResearcher(string name="", int a=0, int w_age=0, int n=0)
	{
		teacher_name = name;
		age = a;
		workage = w_age;
		num = n;
	}
	void showDetails()
	{
		cout << "Teacher Researcher: " << teacher_name << ", Age: " << age << ", Teaching Years: " << workage << ", Paper Count: " << num << endl;
	}
	void research()
	{
		experiment();
		cout << "Started experimental research." << endl;
	}
	void research(int days)
	{
		cout << "Spent "<<days<<" days doing experimental research.\n";
	}
};

int main()
{
	TeacherResearcher tr("Dr. Smith", 40, 15, 50);
	tr.showDetails();
	tr.research();
	tr.research(7);
	return 0;
}